<template>
	<view class="orderfound">
		<view class="list" v-if="list != ''">
			<view class="item" v-for="(item,index) in list" :key="index">
				<text>{{index}}</text>
				<text>销毁YSB：{{item}}</text>
			</view>
		</view>
		<view class="list" v-else>
			<view class="item">
				<text>销毁YSB：0</text>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		UserBurn
	} from "@/api/user.js"
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad(e) {
			this.UserBurn(e.id)
		},
		methods: {
			UserBurn(id) {
				UserBurn({
					user_id: id
				}).then(res => {
					this.list = res.data
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #efefef;
	}

	.item {
		background-color: #fff;
		padding: 10px;
		font-size: 12px;
		font-weight: 550;
		display: flex;
		flex-direction: column;
		margin-top: 8px;

		text {
			margin: 2px 0;
		}
	}
</style>
